]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
appWellMenu: Show the "new window" item for non running apps
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 25 Feb 2011 14:43:43 +0000 (15:43 +0100)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 25 Feb 2011 14:51:15 +0000 (15:51 +0100)
There is no reason to not display it, and from a user's point of view the
distinction is confusing.

js/ui/appDisplay.js

index a2286d0110f8aea7512f93f029e6f89ae4350a78..91a39151fca604bfd7986ce78fc0a23548c67bdd 100644 (file)
@@ -548,10 +548,9 @@ AppIconMenu.prototype = {
 
         let isFavorite = AppFavorites.getAppFavorites().isFavorite(this._source.app.get_id());
 
-        this._newWindowMenuItem = windows.length > 0 ? this._appendMenuItem(_("New Window")) : null;
+        this._newWindowMenuItem = this._appendMenuItem(_("New Window"));
+        this._appendSeparator();
 
-        if (windows.length > 0)
-            this._appendSeparator();
         this._toggleFavoriteMenuItem = this._appendMenuItem(isFavorite ? _("Remove from Favorites")
                                                                     : _("Add to Favorites"));